// import { ZwUnityKitNetwork } from '@zhongwan/zw-unitykit-network';
import { ZwScrmRequest as ZwUnityKitNetwork } from '@zhongwan/js-sdk';

const baseUrl = '//api-dev.scrm.keyid.cn';

/**
 * @description: 获取分组数据
 * @param {*} params
 * @return {*}
 */
export const getGroupList = params => {
    const url = `${baseUrl}/scrm-api/console/tenant/group/getLists`;
    const method = 'get';
    return ZwUnityKitNetwork({ url, method, params });
};

/**
 * @description: 获取朋友圈素材列表数据
 * @param {*} data
 * @return {*}
 */
export const getFriendsList = data => {
    // const url = `${baseUrl}/scrm-api/console/media/moment/getList`;
    const url = `${baseUrl}/scrm-api/console/media/moment/v2/getList`;
    const method = 'post';
    return ZwUnityKitNetwork({ url, method, data });
};
